package shop.services.front.sku.impl;

import org.springframework.stereotype.Service;
import shop.core.ServicesManager;
import shop.services.front.sku.SkuService;
import shop.services.front.sku.bean.Sku;
import shop.services.front.sku.dao.SkuDao;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/4/24.
 */
@Service("skuServiceFront")
public class SkuServiceImpl extends ServicesManager<Sku,SkuDao> implements SkuService {
    @Resource(name="skuDaoFront")
    @Override
    public void setDao(SkuDao skuDao){this.dao=skuDao;}

    @Override
    public List<Sku> selectListByProductId(Sku sku) {
       return dao.selectListByProductId(sku);
    }

    @Override
    public List<Sku> selectListBySpecID(Sku sku) {
        return dao.selectListBySpecID(sku);
    }
}
